package com.jason.demo.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.jason.demo.pojo.Category;

@RestController
@RequestMapping("/index")
public class IndexController {
	
	
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public List<Category> getCategoryList() {
		List<Category> list = new ArrayList<>();
		list.add(new Category(1, "股权"));
		list.add(new Category(1, "期权"));
		list.add(new Category(1, "公司列表"));
		return list;
	}
}
